package com.xf.lastmall.moudle.dto.cosume;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Desc: 核销消息往kafka放入队列，数据平台消费，用来大促数据统计
 * @Author: yeweijian9
 * @Date 2018/11/30 17:48
 */
@Data
public class ConsumeOrderMessageDto implements Serializable {

    private static final long serialVersionUID = -8505127022913694118L;

    //核销表id
    private String consumeId;

    private String mallCode;

    private String orderNo;

    private String orderSubNo;

    //售卖id
    private String commodityNo;

    //商品名称
    private String commodityName;

    //订单类型(好物/秒杀/拼团等)
    private String orderType;

    private String consumeCode;

    private int consumeQuality;

    private BigDecimal consumeAmount;

    private String merchantCode;

    private String merchantName;

    private String userId;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date consumeTime;

}
